@import "./global.scss";
.cboard {
    &-layout {
        overflow-y: hidden;
        overflow-x: hidden;
        box-sizing: border-box;
        padding: 10px;
        min-height: 300px;
        @extend .scrollbar-style;
    }

    &-table {
        .el-table__header {
            thead tr th {
                font-size: 14px;
                font-weight: 500;
                color: rgba($font-color, 0.85);
                background-color: rgba($theme-color, 0.04);
            }
            thead th.gutter {
                width: 17px !important;
            }
        }
        .el-table__row {
            td {
                padding: 8px 0;
            }
            .el-table__row--striped td {
                background-color: #F9F9F9;
            }
        }
        .el-table--scrollable-y {
            $bar-width: 8px;
            .el-table__header-wrapper {
                &::-webkit-scrollbar {
                    max-width: $bar-width;
                    width: $bar-width;
                    background-color: transparent;
                    cursor: pointer;
                }
            }
            .el-table__body-wrapper {
                @include setScrollbar(rgba(#1F2933, 0.6), transparent, $bar-width);
            }
        }
        .el-pagination {
            overflow-x: hidden;
            padding: 14px 6px;
            text-align: right;
        }
        .el-table__empty-text {
            line-height: unset;
            i {
                font-size: 36px;
            }
        }
        .el-loading-mask {
            background-color: rgba(255,255,255,.5);
        }
    }
}
/* 设置全局element-ui样式 */

.cboard-card-more-flex {
    flex-wrap: wrap;
    >.el-col {
        padding: 5px 0;
    }
}
.cboard-layout {
    .grid-content-params {
        margin: 5px 0px;
    }
    .grid-content-cell {
        margin:  10px 0px;
    }
    .el-input--mini {
        .el-input__inner {
            height: 22px;
            line-height: 22px;
            font-size: 12px;
        }
        .el-input__icon {
            line-height: 22px;
        }
    }
    $h-height: 50px;
    $f-height: 40px;
    $padding: 16px;
    .cboard-layout-cell {
        .cboard-global-params {
            height: $h-height;
            line-height: $h-height;
            .el-icon-search {
                cursor: pointer;
            }
            &-input {
                @extend .flex-justify-between;
                flex-wrap: nowrap;
                >div {
                    &:first-child {
                        flex: 1 1 auto;
                    }
                    &:last-child {
                        width: 60px;
                        flex-grow: 0;
                        flex-shrink: 0;
                        text-align: right;
                    }
                }

            }
        }
        .cboard-card-error {
            position: absolute;
            top: 0;
            width: 100%;
            z-index: 111;
        }
        .cboard-card-header {
            padding: 0 $padding;
            height: $h-height;
            line-height: $h-height;
            @extend .flex-justify-between;
            flex-wrap: nowrap;
            .cboard-card-title {
                font-size: 16px;
                font-weight:400;
                color: rgba($font-color,0.85);
                flex-shrink: 0;
                flex-grow: 0;
                text-align: left;
                width: 12em;
                padding-right: 1em;
            }
            .cboard-card-not-params {
                width: 100%;
                flex: 1 1 auto;
            }
            .cboard-card-params-main {
                @extend .flex-justify-between;
                flex-wrap: nowrap;
                .cboard-card-params-content {
                    position: relative;
                    height: $h-height;
                    >.el-row {
                        flex-wrap: wrap;
                    }
                }
            }
            .cboard-card-params,.cboard-card-params-content {
                flex: 1 1 auto;
            }
            .cboard-card-download,.cboard-card-search,.cboard-card-more {
                flex-shrink: 0;
                flex-grow: 0;
                width: 60px;
                text-align: right;
            }
        }
        .cboard-card-footer {
            height: $f-height;
            line-height: $f-height;
            font-size: 14px;
            font-weight: 400;
            color: rgba($font-color,0.65);
            box-sizing: border-box;
            text-align: left;
            i {
                padding-right: 5px;
                vertical-align: middle;
                color: rgba($theme-color, 0.8);
            }
        }
        .cboard-card-footer-border {
            border-top: 1px solid #E8E8E8;
        }
        .cboard-echart-layout .cboard-card-footer {
            position: absolute;
            bottom: 0px;
            left: $padding;
            right: $padding;
        }
        .cboard-table {
            .cboard-card-footer {
                padding: 0  $padding;
            }
            .table-single-progress {
                @extend .flex-justify-between;
                .el-progress--line {
                    flex: 1 1 auto;
                }
                &-text {
                    @extend .text-over;
                    padding: 0 5px;
                }
            }
        }
    }
    .cboard-echart-layout {
        width: 100%;
        height: 100%;
        position: relative;
        box-sizing: border-box;
        .echarts-view {
            position: absolute;
            left: $padding;
            right: $padding;
            height: 100%;
        }
        .echarts-position {
            top: $h-height;
            bottom: $f-height;
            height: auto;
        }
        .timeline-card .el-card__body{
            padding: 10px 20px;
            >p {
                padding: 5px 0px;
                border-bottom: 1px solid #EBEEF5;
                &:last-of-type {
                    border: none;
                }
            }
        }
        .kpi-indicator-card {
            display: flex;
            justify-content: center;
            align-items: center;
            &-list {
                display: flex;
                justify-content: center;
                >li {
                    text-align: center;
                    border-right: 1px solid #D5D5D5;
                    margin: 20px 10px;
                    padding: 0 10px;
                    .indicator-title {
                        color: #AEAEAE;
                        font-weight: 400;
                        font-size:12px;
                        padding: 10px 0;
                    }
                    .indicator-value {
                        font-size: 30px;
                        font-weight:400;
                        vertical-align: sub;
                    }
                    .indicator-sub {
                        padding-left: 5px;
                    }
                    &:last-of-type {
                        border-right: none;
                    }
                }
            }
        }
    }
    /* 标签组件 */
    .cboard-tabs {
        .el-tabs__header {
            margin: 0;
            .el-tabs__nav-wrap::after {
                content: "";
                position: absolute;
                left: 0;
                bottom: 0;
                width: 100%;
                height: 1px;
                background-color: #E4E7ED;
                z-index: 1;
            }
            .el-tabs__nav {
                .is-active {
                    background-color: #ffffff;
                }
                .el-tabs__item {
                    padding: 0 !important;
                }
            }
        }
        .tabs-label {
            padding: 0 20px;
            font-size:16px;
            font-weight:400;
        }
        .border-shaw {
            box-shadow: unset;
            border-radius: unset;
        }
        .el-table__body-wrapper {
            height: calc(100% - 72px) !important;
        }
        .cboard-layout-cell {
            height: 100%;
            .cboard-echart-layout {
                height: 100%;
            }
        }
    }
}
.cboard-layout {
    // .el-button {
    //     @extend .button-particle;
    // }
    .el-input__suffix {
        display: flex;
        align-items: center;
        .el-input__suffix-inner {
            display: flex;
            .el-icon-search {
                order: 2;
            }
        }
    }
    .el-dialog.is-fullscreen{
        @extend .scrollbar-style;
    }
	max-height: 100vh;
	overflow: auto;
}